# -*- coding: utf-8 -*-
"""
Created on Fri Feb 15 23:21:05 2013

@author: nicolas
"""

from multiprocessing import Pool


def f(x):
     return x*x



if __name__ == '__main__':
    p = Pool(5)
    Res=p.map(f, [1,2,3])
    print Res